Fix a string leak
authorLuca Bacci <luca.bacci982@gmail.com>
Fri, 12 Jul 2019 08:43:44 +0000 (08:43 +0000)
committerLuca Bacci <luca.bacci982@gmail.com>
Fri, 12 Jul 2019 08:43:44 +0000 (08:43 +0000)
Fixes #2014

gtk/gtkemojicompletion.c

index 058e1867e27761c11d3daa879818105eefd11848..23d8a34195bee67794b567de7f3908eeca654ee0 100644 (file)
@@ -563,7 +563,6 @@ populate_completion (GtkEmojiCompletion *completion,
   GVariantIter iter;
   GVariant *item;
 
-  text = g_strdup (text);
   g_free (completion->text);
   completion->text = g_strdup (text);
   completion->length = g_utf8_strlen (text, -1);